package com.zhku.goods.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "search", fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {

    @PostMapping("/search/index/goods")
    public Boolean add(@RequestBody GoodsIndex goodsIndex);

    @PostMapping("/search/index/updateGoods")
    public Boolean update(@RequestBody GoodsIndex goodsIndex);

    @PostMapping("/search/index/deleteGoods")
    public Boolean delete(@RequestBody GoodsIndex goodsIndex);

}
